package ch.fusun.baron.player;

import ch.fusun.baron.core.injection.Inject;
import ch.fusun.baron.data.DataUpdate;
import ch.fusun.baron.player.api.MarriageService;

/**
 * 
 */
public class DivorceDataUpdate implements DataUpdate {

	@Inject
	private transient MarriageService marriageService;
	private Player person;

	/**
	 * Kryo
	 */
	public DivorceDataUpdate() {
	}

	/**
	 * @param person
	 *            The person
	 */
	public DivorceDataUpdate(Player person) {
		this.person = person;
	}

	@Override
	public void update() {
		marriageService.divorce(person);
	}

}
